# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='domain_info',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.CharField(max_length=100, verbose_name=b'user id', blank=True)),
                ('project_name', models.CharField(max_length=100, verbose_name=b'\xe5\x90\x8d\xe7\xa7\xb0')),
                ('domain_name', models.CharField(max_length=100, verbose_name=b'\xe5\x9f\x9f\xe5\x90\x8d')),
                ('source_ip', models.CharField(max_length=100, verbose_name=b'\xe6\xba\x90\xe7\xab\x99IP')),
                ('source_port', models.IntegerField(default=80, verbose_name=b'\xe6\xba\x90\xe7\xab\x99\xe7\xab\xaf\xe5\x8f\xa3')),
                ('last_update_time', models.CharField(max_length=100, verbose_name=b'\xe6\xba\x90\xe7\xab\x99IP', blank=True)),
                ('dnspod', models.IntegerField(default=1, verbose_name=b'dnspod')),
                ('cname_domain', models.CharField(max_length=100, verbose_name=b'cname_domain', blank=True)),
                ('cname_ip', models.CharField(max_length=100, verbose_name=b'cname_ip', blank=True)),
                ('token', models.CharField(max_length=100, verbose_name=b'token', blank=True)),
                ('status', models.CharField(max_length=100, verbose_name=b'status', blank=True)),
                ('a_ip', models.CharField(max_length=100, verbose_name=b'a_ip', blank=True)),
            ],
            options={
                'ordering': ['source_ip'],
                'verbose_name': '\u57df\u540d',
                'verbose_name_plural': '\u57df\u540d',
            },
        ),
        migrations.CreateModel(
            name='domain_model',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=100, verbose_name=b'\xe6\xa8\xa1\xe6\x9d\xbf\xe5\x90\x8d\xe7\xa7\xb0')),
                ('context', models.TextField(verbose_name=b'\xe6\xa8\xa1\xe6\x9d\xbf\xe5\x86\x85\xe5\xae\xb9', blank=True)),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': '\u6a21\u677f\u540d\u79f0',
                'verbose_name_plural': '\u6a21\u677f\u540d\u79f0',
            },
        ),
        migrations.CreateModel(
            name='source_line',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=100, verbose_name=b'\xe6\xba\x90\xe7\xab\x99\xe7\xba\xbf\xe8\xb7\xaf')),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': '\u6e90\u7ad9\u7ebf\u8def',
                'verbose_name_plural': '\u6e90\u7ad9\u7ebf\u8def',
            },
        ),
        migrations.CreateModel(
            name='source_line_record',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('source_ip', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
                ('source_port', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
                ('source_type', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
                ('source_weight', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
                ('max_fail', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
                ('silence_time', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
                ('domain_name', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
                ('source_line', models.ForeignKey(to='Domaincontrol.source_line')),
            ],
            options={
                'ordering': ['source_line'],
                'verbose_name': '\u6e90\u7ad9\u7ebf\u8def',
                'verbose_name_plural': '\u6e90\u7ad9\u7ebf\u8def',
            },
        ),
        migrations.CreateModel(
            name='source_type',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=100, verbose_name=b'\xe5\x9b\x9e\xe6\xba\x90\xe6\x96\xb9\xe5\xbc\x8f')),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': '\u56de\u6e90\u65b9\u5f0f',
                'verbose_name_plural': '\u56de\u6e90\u65b9\u5f0f',
            },
        ),
        migrations.AddField(
            model_name='domain_info',
            name='model',
            field=models.ForeignKey(to='Domaincontrol.domain_model'),
        ),
        migrations.AddField(
            model_name='domain_info',
            name='source_line',
            field=models.ForeignKey(to='Domaincontrol.source_line'),
        ),
        migrations.AddField(
            model_name='domain_info',
            name='source_type',
            field=models.ForeignKey(to='Domaincontrol.source_type'),
        ),
    ]
